package com.cn.lf.controller;

import com.cn.lf.service.MemberFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by liufeng on 2018/6/15
 */
@RestController
public class OrderFeignController {
    int count;

    @Autowired
    private MemberFeignService service;

    @GetMapping("/getToMemberAll")
    public List<String> getToMemberAll(){
        count++;
        System.out.println("OrderFeignController.getToMemberAll========================" +count);
        return service.getToMemberAll();
    };

    @GetMapping("/test")
    public String test(){
        return "test ===";
    };

}
